<table width="100%" border="1" align="center" height="100%">
  <tr>
    <td> 
      Drugs in <strong><%= h(@category.name) %></strong>
    </td>
    <td>
      Sideffects
    </td>
    <td>
      Details
    </td>
  </tr>
  <tr> 
    <td width="30%" valign="top">
      <div id = "drugs_table">
        <%= render(:partial => "show_drugs_table") %>
      </div>
    </td>
    <td width="40%" valign="top">
      <table width="100%">
        <tr>
          <td valign="top">
            <% form_remote_tag(:url => {:action => :show_category_sideffects}, :update => "category_sideffects", :complete => "$('details').innerHTML='<strong>Click Sideffect to Show Details</strong>'") do %>
              Gender: <%= select_tag(:sex, options_for_select({"Female" => "F", "Male" => "M", "All" => "All"}, "All")) %>
              Age: <%= select_tag(:age, options_for_select({"<18" => "18", "18-45" => "45", "45-60" => "60", ">60" => "inf", "All" => "All"}, "All")) %>
              Time Taken:<%= select_tag(:time_taken, options_for_select({"< 1 week" => "week", "1 week - 1 month" => "month", "1 month - 3 months" => "season", "3 months - 6 months" => "half_year", "6 months - 1 year" => "year", "> 1 year" => "inf", "All" => "All"}, "All")) %>
              <%= submit_tag("Filter") %>
            <% end %>
          </td>
          </tr>
          <tr>
            <td valign="top">
              <div id = "category_sideffects">
                <%= render(:partial => "show_category_sideffects") %>
              </div>
          </td>
          </tr>
        </table>
    </td>
    <td width="30%" valign="top">
      <div id="details">
        <%= render(:partial => "show_details") %>
      </div>
    </td>
  </tr>
</table>
